-
Notifications
You must be signed in to change notification settings - Fork 328
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Stepsperunit parameters #189
base: experimental
Are you sure you want to change the base?
Stepsperunit parameters #189
Conversation
…chine configurations
Hey, I don't like this because it makes the config file huge and confusing. Maybe if the machine definitions were at the end of the file it would be better. I think the current one line config is better for that. I much rather have 4 magic numbers than 7*n. |
The purpose of this proposal is to replace the magic numbers by numbers that have a comprehensible meaning. Off course we can refactor it so that it becomes less confusing. Implementing the calculation of steps_per_mm in the source by using macros is, in my opinion, much better than keeping the formula in a wiki page and expecting the users to visit that page, calculate the values by hand and paste the results in the Configuration.h file. Using macros won't affect the size of the resulting binary, won't impact performance since the calculation is done in compile time and will benefit us by adding better semantics to the source. I will try to work on a second proposal, cleaner than this one, and then I'll probably send you another pull request for your consideration. This message is just to let you know the rationale behind my proposal and to get some more feedback from you. |
I would prefer having the formula in comments next to the numbers, and On 06/18/2012 02:07 PM, felipesanches wrote:
|
If the problem is space, we could keep each machine config in its own config file, so that it's both easy to understand&tweak and not cluttered in a single giant file. Also, keeping all parameters explicit helps one better understand the characteristics of each machine. By looking at By keeping these in separate files we can achieve that: it would be clean to read the main config file, and the details would be there in the specific machine config files. Win-Win. |
The problem is not space but complexity. On 06/18/2012 03:14 PM, felipesanches wrote:
|
This is what I consider a better way of configuring axis scaling and extruder parameters.
I have left the hard-coded magic numbers because I still dont know which specific parameters where used to obtain those values. Please consider expressing all those configurations by defining the following attributes, so that they are easier to tweak/understand: